package com.mdhw.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mdhw.config.R;
import com.mdhw.system.entity.SysMenu;
import com.mdhw.system.vo.SysMenuTree;
import com.mdhw.system.vo.SysMenuVo;

import java.util.List;

/**
* @author Huang
* @date 2022-03-14
*/
public interface SysMenuService extends IService<SysMenu> {


    public List<SysMenuTree> selectMenuTree(Integer filterType,List<Long> checkedIdList);
    /**
     * 新增菜单
     * @param sysMenuVo
     * @return
     */
    public R<String> addSysMenu(SysMenuVo sysMenuVo);

    /**
     * 删除菜单
     * @param id
     * @return
     */
    public R<String> deleteSysMenu(Long id);


    /**
     * 修改菜单
     * @param sysMenuVo
     * @return
     */
    public R<String> updateSysMenu(SysMenuVo sysMenuVo);
}
